package string;

public class StringBuilderDemo2 {
    public static void main(String[] args) {
        //用Stringbuilder类来修改String类型的数据
        //append添加，replace替换,insert插入,delete删除,reverse反转
        StringBuilder builder=new StringBuilder("a");
        for (int i=0;i<10000000;i++){
            builder.append("a");
        }
        System.out.println("执行完毕!");
    }
}
